// 定义一个InterfacePerson 接口
interface InterfacePerson {
    name: string,
    age: number,
}
// 定义一个InterfaceStudent接口继承InterfacePerson 接口
interface InterfaceStudent extends InterfacePerson {
    getThis: () => InterfaceStudent
}

const person: InterfaceStudent = {
    name: "陶品奇",
    age: 22,
    getThis(): InterfaceStudent {
        return this
    }
}
console.log(person.name,person.age)
console.log(person.getThis())